import React, {Component} from 'react';
import {Route, Switch} from 'react-router-dom';
// import routes from './routes';
import Home from './views/home';
import Detail from './views/movie';
import './app.scss';

class App extends Component {
  render() {
    return (
      <Switch>
        <Route exact path='/' component={Home}/>
        <Route path='/detail/:id' component={Detail}/>
      </Switch>
    );
  }
}
export default App;